import Vue from 'vue'
import App from './App.vue'
import ViewUI from 'view-design';
import locale from 'view-design/dist/locale/zh-CN';
import 'view-design/dist/styles/iview.css';
import request from './utils/request'
import InnerObject from "./codelist"
import coderun from './coderun'

Vue.use(ViewUI, {locale});

let doMian = null

if (window._doMian_) {
  doMian = window._doMian_
}

//反正后端让我这样加的-我也不知道为哈-咱也不敢说-咱也不敢问
Vue.prototype._doMian_ = (doMian || 'MIX')

Vue.prototype.$codeRun = coderun
Vue.config.InnerObject = InnerObject

//全局请求设置
Vue.prototype.$request = request({
  AppURL: '/' + (doMian || 'MIX')
});

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')
